package com.lantosec.hmrp.modules.archives.vo;

import java.math.BigDecimal;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserDuty;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部落实党风廉政建设责任制情况表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserDuty对象", description="领导干部落实党风廉政建设责任制情况表")
public class UserDutyVO extends BaseVO<UserDuty> {
    private static final long serialVersionUID = 1L;


    public UserDutyVO(UserDuty entity){
        this.UserDutyId = entity.getUserDutyId();
        this.userId = entity.getUserId();
        this.littleBadPct = entity.getLittleBadPct();
        this.generalPct = entity.getGeneralPct();
        this.littleGoodPct = entity.getLittleGoodPct();
        this.goodPct = entity.getGoodPct();
        this.evalDate = entity.getEvalDate();
        this.evalConclude = entity.getEvalConclude();
        this.citeCase = entity.getCiteCase();
        this.dutyChargeCase = entity.getDutyChargeCase();
        this.processUnit = entity.getProcessUnit();
        this.refNo = entity.getRefNo();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserDuty convertToEntity(){
        return new UserDuty(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String UserDutyId;

    @ApiModelProperty(value = "用户主表ID")
    private String userId;

    @ApiModelProperty(value = "民主测评得票较差结果得票比例")
    private BigDecimal littleBadPct;

    @ApiModelProperty(value = "民主测评得票一般结果得票比例")
    private BigDecimal generalPct;

    @ApiModelProperty(value = "民主测评得票较好结果得票比例")
    private BigDecimal littleGoodPct;

    @ApiModelProperty(value = "民主测评得票好结果得票比例")
    private BigDecimal goodPct;

    @ApiModelProperty(value = "考核时间")
    private String evalDate;

    @ApiModelProperty(value = "考核结论")
    private String evalConclude;

    @ApiModelProperty(value = "受表彰情况")
    private String citeCase;

    @ApiModelProperty(value = "被责任追究情况")
    private String dutyChargeCase;

    @ApiModelProperty(value = "表彰或追究单位")
    private String processUnit;

    @ApiModelProperty(value = "文号")
    private String refNo;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
